<%@ include file="/common/taglibs.jsp"%>
<%@ page pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>系统日志</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript">
<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function toSearch(){
	document.form2.action='operlog.html';
	document.form2.submit();
}

function toReset(){
	document.form2.reset();
}

function toView(id){
	url = 'operlog.html?method=view&id=' + id;
	MM_openBrWindow(url,'','width=500,height=300');
}


//-->
</script>
<link rel="stylesheet" type="text/css"
	href="<c:url value='/styles/${appConfig["csstheme"]}/style.css'/>" />
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/displaytag.css'/>" />
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/sasis.css'/>" />	 	
<script src="<c:url value='/scripts/common.js'/>"></script>
<script type="text/javascript" src="<c:url value='/scripts/form.js'/>"></script>
<script src="<c:url value="/scripts/datetime.js"/>" language="javascript"></script>
</head>

<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="100%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="1%">&nbsp;</td>
              <td width="98%" class="brownbg_whiteTOPBoline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="2%"><img src="images/pic06-blue-arrow.jpg" width="19" height="24" /></td>
                  <td width="98%" class="black14-B">日志管理</td>
                </tr>
              </table></td>
              <td width="1%">&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td align="left" valign="top"><table width="100%" height="313" border="0" cellpadding="0" cellspacing="0">
                
                <tr>
                  <td height="23" align="left" valign="top" class="f4bgBrown">
                  <form name="form2" action="" method="post" target="_self">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
					

                    <tr>
                      <td>&nbsp;</td>
                      <td class="black12" width="30%">&nbsp;</td>
                      <td class="black12" width="30%">&nbsp;</td>
                      
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="3%">&nbsp;</td>
                      <td class="black12">操作人：
                        <select name="operator">
                        	<option value="-1">全部操作人</option>
                        	<c:forEach items="${users}" var="u">
                        		<option value="<c:out value="${u.id}"/>"><c:out value="${u.cnName}"/></option>
                        	</c:forEach>
                        </select>
                        &nbsp;
                      </td>
                      <td class="black12">
                      	操作时间：
                      	<input name="opTime" type="text" size="10" disabled="disabled"/>
                      	<img src="images/date.gif" width="16" height="15" onclick="fPopCalendar(opTime,opTime);return false"  style="cursor:hand"/>
                      
                      </td>
                      
                      <td>&nbsp;</td>
                      <td><table width="140" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="42" align="left"><table width="42" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="8" align="left" background="images/bu_bg_2.jpg"><img src="images/bu_bg_1.jpg" width="8" height="22" /></td>
                              <td width="28" align="center" background="images/bu_bg_2.jpg" class="button-12-brown" onclick="toSearch();" style="cursor: pointer;">查询</td>
                              <td align="right" background="images/bu_bg_2.jpg"><img src="images/bu_bg_3.jpg" width="8" height="22" /></td>
                            </tr>
                          </table></td>
                          <td width="10">&nbsp;</td>
                          <td><table width="42" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="8" align="left" background="images/bu_bg_2.jpg"><img src="images/bu_bg_1.jpg" width="8" height="22" /></td>
                                <td width="28" align="center" background="images/bu_bg_2.jpg" class="button-12-brown" onclick="toReset();" style="cursor: pointer;">重置</td>
                                <td align="right" background="images/bu_bg_2.jpg"><img src="images/bu_bg_3.jpg" width="8" height="22" /></td>
                              </tr>
                          </table></td>
                         <td>&nbsp;</td>
                        </tr>
                        
                      </table>
                      </form>
                     </td>
                      <td width="14%">&nbsp;</td>
                      <td width="3%">&nbsp;</td>
                    </tr>
                    
                  </table></td>
                </tr>
                <tr>
                  <td height="23" align="left" valign="top" class="bluebg">
                  <sasis:page items="${logList}"/>
    
                  </td>
                  </tr>
                <tr>
                  <td height="243" align="left" valign="top" >
                  <form name="form3" action="" method="post" target="_self">
				 <table width="100%" border="0" cellspacing="0" cellpadding="0">

		                    <tr>
		                      <td width="4%" height="26" class="list_up_down">
		                      	<input type='checkbox' name='all' onclick='chooseAll(this);' /></td> 
		                      <td width="12%" class="list_up_down">错误类型</td>
		                      <td width="10%" class="list_up_down">操作人</td>
		                      <td width="7%" class="list_up_down">模块</td>
		                      <td width="22%" class="list_up_down">内容</td>
		                      <td width="10%" class="list_up_down">时间</td>
		                      <p:allow pid="6724">
		                    	<td width="4%" class="list_up_down">查看</td>
		                      </p:allow>
		                     </tr>
		                     
		                      <c:forEach items="${logList}" var="log">
		                   	<tr>
		                     <td class="line_xuxian" height="26"> 
		                    	&nbsp;<input type="checkbox" name="selected_id" value="<c:out value="${log.id}"/>" />
		                    </td>
		                    <td class="line_xuxian">${log.typeName}</td>
		                    <td class="line_xuxian">
		                   
		                    	${log.userName}
		                    
		                    </td>
		                    <td class="line_xuxian">
		                    	${log.funcName}
		                    <td class="line_xuxian">
		                    	${log.logInfo}
		                    </td>
		                    <td class="line_xuxian">
		                    <script>
		                    	formatDateTime(${log.logTime});
		                    </script>
                      		</td>
                      		 <p:allow pid="6724">
		                      <td class="line_xuxian"  >
		                    	<img src="images/view.gif" width="14" height="14" style="cursor:hand" onclick="toView('<c:out value="${log.id}"/>')"/>
							  </td>
							</p:allow>
		                    	</tr>	
		                    </c:forEach>
						</table>
						
				 </form>
                  </td>
                  </tr>
              </table></td>
              <td>&nbsp;</td>
            </tr>
          </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
